﻿namespace HDLogCenter.Infrastructure.Config
{
    public class DingTalkConfig
    {
        /// <summary>
        /// 钉钉Webhook地址
        /// </summary>
        public string WebhookUrl { get; set; } = string.Empty;

        /// <summary>
        /// 错误日志阈值（1分钟内超过此数量将触发告警）
        /// </summary>
        public int ErrorThreshold { get; set; } = 10;

        /// <summary>
        /// 是否启用钉钉告警
        /// </summary>
        public bool Enabled { get; set; } = true;
    }
}
